home *** CD-ROM | disk | FTP | other *** search
-
-
-
- PSIGNAL(3) MINTLIB LIBRARY FUNCTIONS PSIGNAL(3)
-
-
- N✓NA✓AM✓ME✓E
- psignal, sys_siglist, signal_names - system signal mes-
- sages
-
- S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
- #include <unistd.h>
-
- void psignal (int sig, const char *s);
-
- #include <siglist.h>
-
- extern char *sys_siglist[];
-
- extern char *signal_names[]; // Should not be used
-
- D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
- psignal produces a message on the standard error output
- describing the indicated signal. The argument string s is
- printed first, then a colon and a blank, then the name of
- the signal and a new-line. (However, if s is NULL or s is
- an empty string the colon is not printed.) To be of most
- use, the argument string should include the name of the
- program that incurred the signal. The signal number should
- be from among those found in <signal.h>.
-
- To simplify variant formatting of messages, the array of
- messages sys_siglist is provided; the signal number can be
- used as an index into this table to get the signal name
- without the new-line. The constant NSIG defined in the
- include file <signal.h> is the number of messages provided
- for in the table.
-
- The array of signal names signal_names has also been pro-
- vided; it is there only for backward compatibility pur-
- poses, and should not be used.
-
- N✓NO✓OT✓TE✓ES✓S
- On UN*X, the string s may be empty, but may not always be
- NULL.
-
- MiNT signals are rather different from UN*X and POSIX.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- MiNT docs 0.1 3 March 1993 1
-
-
-